package com.zmj.service.impl;

import java.util.List;

import com.zmj.dao.IAddressDao;
import com.zmj.dao.impl.AddressDaoImpl;
import com.zmj.entity.Address;
import com.zmj.entity.Region;
import com.zmj.service.IAddressService;

public class AddressServiceImpl implements IAddressService{
	IAddressDao addressDao=new AddressDaoImpl();
	@Override
	public List<Region> selRegion(String superCode) {
		return addressDao.selRegion(superCode);
	}
	@Override
	public List<Address> selAddressesByUserId(int userId) {
		
		return addressDao.selAddressesByUserId(userId);
	}
	@Override
	public boolean addAddress(Address address) {
		
		return addressDao.addAddress(address);
	}
	
	

}
